//
//  HMTestViewController.swift
//  Weibo05
//
//  Created by IvesMac on 2017/6/10.
//  Copyright © 2017年 IvesMac. All rights reserved.
//

import UIKit

class HMTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        addPushButton()
    }

    private func addPushButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
        
    }

    @objc private func pushAction() {
    
        // 当点击按钮时,push到下一级控制器
        let testVc = HMTestViewController()
        self.navigationController?.pushViewController(testVc, animated: true)
    }
    
}
